package com.example;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * mvn package docker:build
 */
@Slf4j
@RestController
@SpringBootApplication
public class SpringbootDocker2Application {

	public static void main(String[] args) {
		SpringApplication.run(SpringbootDocker2Application.class, args);
	}

	@RequestMapping("hello")
	public String hello(){
		return "<h1>Hello Spring-Boot Maven Docker22222</h1>";
	}

	@RequestMapping("hi")
	public String hi(){
		log.info("测试日志输出........");
		return "<h1>Hi SB22222</h1>";
	}

}
